package com.cheyun.netsalev3.dao

import androidx.lifecycle.LiveData
import androidx.room.*
import com.cheyun.netsalev3.bean.dm.DmSearch

@Dao
interface DmSearchDao {

    @Query("SELECT * FROM dmsearch order by id desc")
    fun getSearchList(): LiveData<List<DmSearch>>

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insertSearch(item: DmSearch)
//
    @Query("DELETE FROM dmsearch")
    fun deleteTabe()
}